package com.fr.report.io;

import com.fr.report.RWorkBook;
import com.fr.report.WorkBook;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

public abstract class AbstractImporter
  implements Importer
{
  public WorkBook generateTemplate(File paramFile)
    throws Exception
  {
    FileInputStream localFileInputStream = new FileInputStream(paramFile);
    WorkBook localWorkBook = generateTemplate(localFileInputStream);
    localFileInputStream.close();
    return localWorkBook;
  }

  public RWorkBook generateResult(File paramFile)
    throws Exception
  {
    FileInputStream localFileInputStream = new FileInputStream(paramFile);
    RWorkBook localRWorkBook = generateResult(localFileInputStream);
    localFileInputStream.close();
    return localRWorkBook;
  }
}